#include "mesh_uniform.h"


UniformMesh::UniformMesh(int ex, int ey, int ez, Vector3 extents)
  : _ex(ex), _ey(ey), _ez(ez), _nx(ex+1), _ny(ey+1), _nz(ez+1),
    _lx(extents(0)), _ly(extents(1)), _lz(extents(2))
{
    _dx = _lx / double(ex);
    _dy = _ly / double(ey);
    _dz = _lz / double(ez);
    _nn = _nx*_ny*_nz;
    _ne = _ex*_ey*_ez;

}









